package com.atgugu.springcloud.mapper;

import com.atgugu.springcloud.entities.Storage;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author Administrator
 */
public interface StorageMapper extends Mapper<Storage> {

    //扣减库(操作复杂,不会自动生成,需要自定义)
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);

}
